home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9802 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1020 b 

  1. Path: news.london.sinet.slb.com!news
  2. From: Laurent Darton <darton@macon.wm.slb.com>
  3. Newsgroups: comp.lang.c
  4. Subject: integer and real numbers in C/C++
  5. Date: Wed, 13 Mar 1996 17:58:28 -0800
  6. Organization: Schlumberger SINet, London, England
  7. Message-ID: <31477D44.782@macon.wm.slb.com>
  8. NNTP-Posting-Host: macon14.macon.wm.slb.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. Hi every all,
  15. According to IEEE 754, I can use integer coded on 24 bits (3 Bytes), 
  16. integer coded on 48 bits (6 Bytes) and on 64 bits...
  17. How can I declare those values in C... I suppose I need to create new 
  18. data structures to do that.. But I don't know how to do ...
  19.  My compiler (MSVC 1.52) says :
  20. long=4 Bytes
  21. double =8 Bytes
  22. long double =10 Bytes
  23.  
  24. My problem is 
  25.     - I don't want to use a long (4 Bytes) to code 3 bytes (but it     
  26. works fine..)
  27.     - I cannot code an integer with 8 Bytes  (but only a double..)
  28.  
  29. How can I do.
  30. Any help is welcomed.
  31. Thanks in advance
  32.